package com.zycfc.zsf.boot.redis.constant;

import java.util.*;
import java.util.concurrent.*;

public class RedisConstant
{
    public static Map<String, byte[]> redisDataMap;
    public static final String LINE_SEPARATOR = "|";
    public static final String COMMA_SEPARATOR = ",";
    public static final String LINE_BREAK = "\r\n";
    public static final String BLANK_STR = "";
    public static final String FILE_END_STR = "######";
    public static final String CHART_SET = "UTF-8";
    public static String REDIS_FILE_DIR;
    public static String REDIS_FILE_PATH;
    public static String OPER_TYPE_SET;
    public static String OPER_TYPE_GET;
    public static String OPER_TYPE_SETEX;
    public static String OPER_TYPE_SETNXEX;
    public static String REDIS_CALL_STAT_CACHE_PRE;
    public static final String REDIS_MOR_CHECK_SWITCH_KEY = "zsf:redisMor:checkSwitch";
    public static final String REDIS_MOR_GLOBAL_SWITCH_KEY = "zsf:redisMor:globalSwitch";
    public static final String REDIS_MOR_APP_SWITCH_KEY = "zsf:redisMor:appSwitch:";
    public static final String REDIS_MOR_NODE_SWITCH_KEY = "zsf:redisMor:nodeSwitch:";
    public static final String REPORTED_REDIS_KEY = "zsf:reportedRedisKey";
    public static final String REDIS_MOR_SWITCH_ON = "on";
    public static final String REDIS_MOR_SWITCH_OFF = "off";
    public static final String KEY_INVALID = "\u672a\u62a5\u5907\u7684redis-key:";
    
    static {
        RedisConstant.redisDataMap = new ConcurrentHashMap<String, byte[]>();
        RedisConstant.REDIS_FILE_DIR = "/home/zycfc/app/zycfc-app/redis-local-file";
        RedisConstant.REDIS_FILE_PATH = "/home/zycfc/app/zycfc-app/redis-local-file/redis.txt";
        RedisConstant.OPER_TYPE_SET = "set";
        RedisConstant.OPER_TYPE_GET = "get";
        RedisConstant.OPER_TYPE_SETEX = "setex";
        RedisConstant.OPER_TYPE_SETNXEX = "setnxex";
        RedisConstant.REDIS_CALL_STAT_CACHE_PRE = "redisCallStat";
    }
}
